package com.java_base.study;

public class OperatorDemo02 {
    public static void main(String[] args) {
        // 目标：+号做连接符的识别
        int a = 5;
        System.out.println("abc" + 'a');//abca
        System.out.println("abc" + a);//abc5
        System.out.println(5 + a);//10
        System.out.println("abc" + 5 + 'a');//abc5a
        System.out.println(15 + "abc" + 15);//15abc15
        System.out.println(a + 'a');//102
        System.out.println(a + "" + 'a');//5a
        System.out.println(a + 'a' + "test");//102test
        System.out.println("test" + a + 'a');//test5a
        System.out.println("test" + (a + 'a'));//test102
        System.out.println('5' + 'a');
        System.out.println('5' + 'a' + 3);
        System.out.println('A' + 'a');
    }
}
